
$( document ).on( "pagecreate", "#workConMainPage", function( event ) {
		access_token=getQueryString("access_token");
		userPostId=getQueryString("userPostId");
	showLoading();
	var  content="";
	content +='<li id="nc">\
		  <a href="#" onClick="goTo(\''+rootPath+"/jsp/weixin/workConList.jsp?access_token="+access_token+"&workConType=1"+"&userPostId="+userPostId+'\')">\
			<span class="t_span">A类管理干部日志</span>\
		  </a>\
		</li>';
	content +='<li>\
		  <a href="#"  onClick="goTo(\''+rootPath+"/jsp/weixin/workConList.jsp?access_token="+access_token+"&workConType=4"+"&userPostId="+userPostId+'\')"  >\
			<span class="t_span">B类经理日志</span>\
		  </a>\
		</li>';
//营销日志不上线，暂时注释掉
	content +='<li>\
		  <a href="#"  onClick="goTo(\''+rootPath+"/jsp/weixin/workConList.jsp?access_token="+access_token+"&workConType=2"+"&userPostId="+userPostId+'\')"  >\
			<span class="t_span">营销日志</span>\
		  </a>\
		</li>';
	content +='<li>\
		  <a href="#"  onClick="goTo(\''+rootPath+"/jsp/weixin/workConList.jsp?access_token="+access_token+"&workConType=3"+"&userPostId="+userPostId+'\')"  >\
			<span class="t_span">运营管理日志</span>\
		  </a>\
		</li>';
	content +='<li>\
		  <a href="#"  onClick="goTo(\''+rootPath+"/jsp/weixin/workConList.jsp?access_token="+access_token+"&workConType=5"+"&userPostId="+userPostId+'\')"  >\
			<span class="t_span">基金会日志</span>\
		  </a>\
		</li>';
	
	
	
	$("#workConMainPage_thelist").append(content).listview('refresh');
	
//	var rsource = $("#rsource").val();
//	
//	
//	if(rsource=="Y"){//云助理
//		$("#alertmsg").hide();
//		$("#contentmsg").show();
//	}else{
//		var firstflag = sessionStorage.getItem("firstflag");
//		if(firstflag==null || firstflag==1){
//			$("#contentmsg").hide();
//			sessionStorage.setItem("firstflag", "2")
//		}else{
//			$("#alertmsg").hide();
//			$("#contentmsg").show();
//		}
//	}
//	$("#showcontentmsg").on('click',function(){
//		$("#alertmsg").hide();
//		$("#contentmsg").show();
//	});
	
//	$.ajax({
//	  	url: rootPath+"/workCon/isNcPerson.do",
//	  	type: "POST",
//	  	dataType: "text",
//		data: "access_token="+access_token,
//	  	success: function( response ) {
//	  		var data=$.parseJSON(response);
//			if(data.state=="200"){
//				//是一把手日志人员，显示一把手日志按钮
//			}else{
//				$("#nc").hide();
//			}
//	  	}
//	});
	
	hideLoading();
});
